// From http://foo.com/ fetch('http://bar.com/data.json', { mode: 'no-cors' // 'cors' by default }).then(function(response) { // Do something with response });